
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>礼物管理信息</title>
	<script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="../ueditor/lang/zh-cn/zh-cn.js" ></script>

    <style type="text/css">
        #ueditors{
            width:100%;
        }
        #checks{
            width:100%;
        }
        #checks input{
            width:90%;
        }
        
    </style>
    
</head>
<body>
	<div class="modal fade" id="giDetails" tabindex="-1" role="dialog"
		aria-labelledby="giDetailsLabel" aria-hidden="true">
		<div class="modal-dialog" style="width: 95%; z-index: 200;">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">礼品信息</h4>
				</div>
				<div class="modal-body">
					<!---***中部***-->
					<div align="left">
						<!--中上部-->
						<!---***图片滚动----对应的样式是rolling.css***-->
						<div align="center">
							<table width="99%">
								<tr>
									<td style="border-style: none; border-width: medium">
										<form id="giftInfo" method="post" name="giftInfo" class="jqtransform">
										<input type="hidden" id="giId" name="id" value="${updateGI.id }" />
										<input type="hidden" id="giftCode" name="giftCode" value="${updateGI.giftCode }" />
											<div align="left">
												<!--中上部-->
												<!---***图片滚动----对应的样式是rolling.css***-->
												<div align="center">

													<table class="table table-bordered" id="checks">

														<tr>
															<td style="text-align: right;width: 10%;">名称</td>
															<td width="25%">
																<input type="text" id="giftName" name="giftName" value="${updateGI.giftName }"
															 	class="inputxt Validform_error" datatype="*" errormsg="请填写信息！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入名称</div>
								                            </td>

															<td style="text-align: right;">促销价</td>
															<td><input type="text" id="promotion" name="promotion" value="${updateGI.promotion }" 
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入促销价</div>
								                            </td>
								                        </tr>
														<tr>
															<td style="text-align: right;">折扣</td>
															<td><input type="text" id="discount" name="discount" value="${updateGI.discount }" 
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入折扣</div>
								                            </td>
															<td style="text-align: right;">图片</td>
															<td>
																<input type="text" id="pic" name="pic" value="${updateGI.pic }" 
																class="inputxt Validform_error" datatype="*" errormsg="请填写信息！" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入图片</div>
								                            </td>
														</tr>
														<tr>
															<td style="text-align: right;">最小单位</td>
															<td>
																<input type="text" id="unit" name="unit" value="${updateGI.unit }" 
																class="inputxt Validform_error" datatype="*" errormsg="请填写信息！" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入最小单位</div>
								                            </td>

															<td style="text-align: right;">成本价</td>
															<td>
																<input type="text" id="enterPrice" name="enterPrice" value="${updateGI.enterPrice }" 
																	class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入成本价</div>
								                            </td>
								                  		</tr>
														
														<tr>
															<td style="text-align: right;">零售价</td>
															<td>
																<input type="text" id="salePrice" name="salePrice" value="${updateGI.salePrice }" 
																	class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入零售价</div>
								                            </td>

															<td style="text-align: right;">团购价</td>
															<td>
																<input type="text" id="groupPrice" name="groupPrice" value="${updateGI.groupPrice }" 
																	class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入团购价</div>
								                            </td>
														</tr>
														<tr>
															<td style="text-align: right;">包邮价</td>
															<td>
																<input type="text" id="mailPrice" name="mailPrice" value="${updateGI.mailPrice }"
																	class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入包邮价</div>
								                            </td>

															<td style="text-align: right;">库存量</td>
															<td>
																<input type="text" id="totals" name="totals" value="${updateGI.totals }" 
																	class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入库存量</div>
								                            </td>
								                        </tr>
														
														<tr>   
															<td style="text-align: right;">点击量</td>
															<td>
																<input type="text" id="clickCount" name="clickCount" value="${updateGI.clickCount }"
																	class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入点击量</div>
								                            </td>
															<td style="text-align: right;">收藏量</td>
															<td>
																<input type="text" id="collection" name="collection" value="${updateGI.collection }"
																	class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！" />
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入收藏量</div>
								                            </td>
														</tr>
														<tr>
															<td style="text-align: right;">商品详情</td>
															<td colspan="6">
																<%-- <input type="text" id="detail" name="detail" value="${updateGI.detail }" /> --%>
																<%-- <textarea rows="3" cols="50" id="detail" name="detail" >${updateGI.detail }</textarea> --%>
																<div id="commentsImgDiv" style="cursor:hand;">
												                    <button class="subbtn"  pe="button" id="fileSelect">晒晒宝贝图片</button>
																	<input type="hidden" id="detail" name="detail" />
																	<input type="hidden" value="0" size="30" id="imgNumber" /><!-- 旧的 数量-->
																	<input type="hidden" value="0" size="30" id="imgNumLen" /><!-- 新添加的 数量-->
																	<input type="hidden" value="0" size="30" id="imgNumLater" /><!-- 一共的 数量-->
																   	
												                    <ul id="listUL" class="uploadImg pictrueLi">
																		<li>
																			<%-- <img id="uploadImg" name="uploadImg" src="<%=request.getContextPath()%>/manage/assets/img/clear.png"
																				width="90px" height="90px" /> --%>
																		</li>
																	</ul>
											                    </div>
											                    <%-- <c:forEach items="${picGiftImg}" var="picImg">
											                    	<c:if test="${picImg != null}">
												                    	<img id="uploadImg" name="uploadImg" src="${picImg}"/>
											                    	</c:if>
											                    </c:forEach> --%>
										                    	
															</td>
														</tr>
														
														<tr>
															<td style="text-align: right;">描述</td>
															<td colspan="6">
																<textarea rows="3" cols="50" id="description" name="description" >${updateGI.description }</textarea>
															</td>
														</tr>
														<tr>
															<td style="text-align: right;">详情5</td>
															<td colspan="6">
																<!-- 富文本编辑器 -->
																<textarea id="ueditorDetails" name="ueditorDetails" style="width: 100%; height: 400px; margin: 0 auto;"></textarea>
																
															</td>
														</tr>
														<!-- 是否。。。 -->
														<tr>
															<td style="text-align: right;">团购</td>
															<td>
																<select name="isGroup" id="isGroup">
																	<c:choose>
																		<c:when test="${updateGI.isGroup==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														<!-- </tr>
														<tr> -->
															<td style="text-align: right;">套餐</td>
															<td>
																<select name="isPackage" id="isPackage">
																	<c:choose>
																		<c:when test="${updateGI.isPackage==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														<!-- </tr>
														
														<tr> -->
															<td style="text-align: right;">促销</td>
															<td>
																<select name="isPromote" id="isPromote">
																	<c:choose>
																		<c:when test="${updateGI.isPromote==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														</tr>
														
														<tr>
															<td style="text-align: right;">包邮</td>
															<td>
																<select name="isMail" id="isMail">
																	<c:choose>
																		<c:when test="${updateGI.isMail==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														<!-- </tr>
														
														<tr> -->
															<td style="text-align: right;">上架</td>
															<td>
																<select name="ispush" id="ispush">
																	<c:choose>
																		<c:when test="${updateGI.ispush==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														</tr>
														
														
													</table>
												</div>
												<div id="optBtn" class="modal-footer">
													<button id="saveBtn" type="submit" class="btn btn-primary btn82 btn_save2">保存</button>
													<button type="button" class="btn btn-default"
														data-dismiss="modal">关闭</button>
												</div>
											</div>
										</form>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<!--**中中部**-->
					<div></div>
					<!----------------------********中部结束********---------------------------->
				</div>
				<div class="modal-footer"></div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>

</body>
</html>


